package N2024.M11.D3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2025-01-19
 * Time: 20:55
 */
public class Test2 {
    public static void main(String[] args) throws InterruptedException {
        Thread[] threads=new Thread[20];
        for (int i = 0; i < threads.length; i++) {
            threads[i]=new Thread(new tt1(i));
            threads[i].start();
            threads[i].join();
        }
        System.out.println("ok");
    }
}
class tt1 implements Runnable{
    int i=0;
    tt1(int i){
        this.i=i;
    }
    @Override
    public void run() {
        System.out.println(i);
    }
}